import App from './App';

// 全局mixins，用于实现setData等功能，请勿删除！';
import zpMixins from '@/uni_modules/zp-mixins/index.js';

// #ifndef VUE3
import Vue from 'vue';

import store from '@/store/index.js'
Vue.use(zpMixins);
Vue.config.productionTip = false;
Vue.prototype.getImgSrc = function(img) {
	if (!img) {
		return "";
	} else if (img.substring(0, 4) != "http") {
		return "https://cdn.xtwaixie.com" + img;
	} else {
		return img;
	}
}
//图纸水印
Vue.prototype.shuiyin = '?watermark/1/image/aHR0cDovL3h0d2FpeGllLTEzMTQ4MDk2MjguY29zLmFwLXNoYW5naGFpLm15cWNsb3VkLmNvbS9zaHVpeWluLnBuZw/gravity/southeast/batch/1/degree/315/scatype/3/spcent/40/dissolve/80'
//营业执照水印
Vue.prototype.shuiyin2 = '?watermark/1/image/aHR0cDovL3h0d2FpeGllLTEzMTQ4MDk2MjgucGljc2gubXlxY2xvdWQuY29tL3NodWl5aW4yLnBuZw/gravity/southeast/batch/1/degree/315/dissolve/60/scatype/3/spcent/20'
App.mpType = 'app';

const app = new Vue({
	...App,
	store
});
app.$mount();
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue';
export function createApp() {
	const app = createSSRApp(App);
	app.mixin(zpMixins);
	return {
		app
	};
}
// #endif